﻿using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace B.S.ProcessEgine.Infractructure.Migrations
{
    public partial class create_FormInfoDetail表单的字段属性表 : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.CreateTable(
                name: "FormInfoDetail",
                columns: table => new
                {
                    FormDetailId = table.Column<int>(type: "int", nullable: false)
                        .Annotation("SqlServer:Identity", "1, 1"),
                    FormId = table.Column<int>(type: "int", nullable: false),
                    FieldName = table.Column<string>(type: "nvarchar(max)", nullable: false),
                    FieldDesc = table.Column<string>(type: "nvarchar(max)", nullable: false),
                    FieldType = table.Column<string>(type: "nvarchar(max)", nullable: false),
                    FieldControl = table.Column<string>(type: "nvarchar(max)", nullable: false),
                    FieldProperties = table.Column<string>(type: "nvarchar(max)", nullable: false),
                    FieldDefaultValue = table.Column<string>(type: "nvarchar(max)", nullable: false),
                    IsDel = table.Column<bool>(type: "bit", nullable: false)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_FormInfoDetail", x => x.FormDetailId);
                });
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropTable(
                name: "FormInfoDetail");
        }
    }
}
